<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            /*background-color: red;*/
            /*background-image: url('timg.jpg');*/
            height: 400px;
            width: 400px;
            /*background-repeat: no-repeat;*/
            /*!*background-repeat: repeat-x;*!*/
            /*!*background-repeat: repeat-y;*!*/
            /*background-position: right top;*/
            /*background-position: 20px 40px;*/
            /*!*left center right /top center bottom*!*/
            /*background-attachment: fixed;*/
            /*在窗口中位置固定*/
            background:red url("timg.jpg") no-repeat left center;
        }
    </style>
</head>
<body>
    <div>
        <p>蛇精蛇精 我叫你一声你敢答应么</p>
    </div>

</body>
</html>